package com.up.api.control;

import com.up.api.myimport.CacheService;
import com.up.api.myimport.LocalCacheService;
import com.up.api.repository.Student;
import com.up.tools.annotation.EnableAutoTryCatch;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Import;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: liuchengjun
 * @title: ImportControl
 * @projectName: 海联技术中台V2.0
 * @depart 软件事业部
 * @description:
 * @date: 2024/1/30/030 17:29 (星期二)
 * @since V2.0
 */
@RestController
@RequestMapping("/up/import")
@Validated
@EnableAutoTryCatch
public class ImportControl {
    @Autowired
    private CacheService cacheService;
    @GetMapping("/import")
    public String importHelloWorld() {
        cacheService.cache();
        return "";
    }
}
